const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  lintOnSave: false,
  transpileDependencies: true,

  productionSourceMap: false,

  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',

  configureWebpack: {
    externals: {
      echarts: 'echarts',
      vue: 'Vue',
      vuex: 'Vuex',
      'vue-router': 'VueRouter',
      axios: 'axios',
      dayjs: 'dayjs',
      "element-ui": 'ELEMENT',
      'vue-quill-editor': 'VueQuillEditor',
    }
  }
})

